/*--------------------------------DataType.h-----------------------------------
 
	Ncbios axis control program

	Rev.: 0.1
	Author: Li Hai-zhou
	Date of Creation: 04-10-2003
	Date of Modification:
	
	Copyright (C) Hua Zhong CNC System Co. Ltd., All rights Reserved
------------------------------------------------------------------------------*/
#ifndef _DATATYPE_H_
#define _DATATYPE_H_

#ifndef NULL
#if defined(__TINY__) || defined(__SMALL__) || defined(__MEDIUM__)
#define	NULL	0
#else
#define	NULL	0L
#endif
#endif

typedef double  fBit64; 
typedef float  fBit32; 
typedef unsigned long  uBit32; 
typedef long Bit32;  
typedef short unsigned int  uBit16;
typedef short int Bit16;  
typedef unsigned char uBit8;
typedef char Bit8; 

typedef struct _Rect
{
	Bit16 left;
	Bit16 top;
	Bit16 right;
	Bit16 bottom;
} SRect;

enum REFRESH_SWITCH {
	SW_OFF = 0,
	SW_ON  = 1,
};

#endif
